class gmail{
public static void main(String [] felight)
{
String[] mail = {"a@gmail.com","b@ymail.com","c@gmail.com","d@gmail.co.in","e@yahoo.com"};
for(int i = 0;i<mail.length;i++)
{
if(mail[i].endsWith("gmail"))
{
int res = mail[i];
}
System.out.println(mail[i]+"");
//System.out.println("" +res);
}
}
}
